<%@ taglib prefix="" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
    Created by IntelliJ IDEA.
    User: Re
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>欢迎登录</title>
</head>
<body>
<div style="text-align: center;">
    <h2>欢迎${user.userName}登录</h2>
    <hr>
    <form action="delete" method="post">
        <button type="submit">注销用户</button>
    </form>
    <form action="update" method="post">
        新密码：<input type="text" name="userPassword"><br>
        <button type="submit">更改密码</button>
    </form>
    <span style="color: red;font-size: 15px">${msg}</span>
    <hr>
    <form action="check" method="post">
        <button type="submit">查看所有用户</button>
    </form>
    <table>
        <tr>
            <th>用户名</th>
            <th>用户性别</th>
        </tr>
    <c:forEach items="${users}" var="user">
        <tr>
            <td>${user.userName}</td>
            <td>${user.userSex}</td>
        </tr>
    </c:forEach>
        <%
            int[] a={1,2,3};
            for (int b:a) {
                System.out.println(b);
            }
        %>
    </table>
</div>
</body>
</html>
